package com.tony.study.designMode.DM5_建造者模式.DM5;

/**
 * Created with IntelliJ IDEA.
 *
 * @Title: CakeSeller
 * @Auther: 皮蛋布丁
 * @Date: 2021/11/01/21:28
 * @Description: 蛋糕销售者（通知蛋糕师制作蛋糕）
 */
public class CakeSeller {

    public CakeSeller() {
    }

    public Cake sell(CakeBuilder cakeBuilder) {
        cakeBuilder.knead();
        cakeBuilder.ferment();
        cakeBuilder.bake(30);
        return cakeBuilder.getCake();
    }
}
